import 'package:flutter/material.dart';

class Page02 extends StatelessWidget {
  final String data_from_page01;

  const Page02({super.key,required this.data_from_page01});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Page02'),
      ),
      body: ElevatedButton(
        onPressed: () {
          Navigator.pop(context);
        },
        child: Text('返回到上一页 navigator.pop $data_from_page01'),
      ),
    );
  }
}
